//路由表页面
import type {RouteRecordRaw} from "vue-router"

//静态路由表
export const staticRoutes:RouteRecordRaw[]=[
    //首页路由
    {
        path:"/home",
        name:"Home",
        component:()=>import("@/pages/Home/index.vue"),
        redirect:'/home/recommend',
        children:[
            {
                path:'recommend',//推荐
                name:"Recommend",
                component:()=>import("@/pages/Home/recommend/index.vue")
            },
            {
                path:'original',//作品
                name:"Original",
                component:()=>import("@/pages/Home/original/index.vue")
            },
            {
                path:'course',//教程
                name:"Courses",
                component:()=>import("@/pages/Home/course/index.vue")
            },
            {
                path:'specialTopic',//专题
                name:"SpecialTopic",
                component:()=>import("@/pages/Home/specialTopic/index.vue")
            },
            {
                path:'frontDynamic',//动态
                name:"FrontDynamic",
                component:()=>import("@/pages/Home/frontDynamic/index.vue")
            },
            {
                path:'attention',//关注
                name:"Attention",
                component:()=>import("@/pages/Home/attention/index.vue")
            },
        ]
    },
    {
        path:'/',
        name:'home',
        redirect:'/home',
    },
    //课程路由
    {
        path:'/course',
        name:'Course',
        redirect:'/course/vip_zone',
        component:()=>import("@/pages/Course/index.vue"),
        children:[
            {
                path: 'vip_zone',
                name: 'vip_zone',
                component: () => import("@/pages/Course/Viper/index.vue")
            },
            {
                path: 'video_courses',
                name: 'video_courses',
                component: () => import("@/pages/Course/Video/index.vue")
            },
            {
                path: 'live_courses',
                name: 'live_courses',
                component: () => import("@/pages/Course/Live/index.vue")
            },
            {
                path: 'major_courses',
                name: 'major_courses',
                component: () => import("@/pages/Course/Major/index.vue")
            },
            {
                path: 'zone_list',
                name: 'zone_list',
                component: () => import("@/pages/Course/Zone/index.vue")
            }

        ]
    },
    //练习室路由s
    {
        path:'/studio',
        name:'Studio',
        redirect:"/studio/studioss",
        component:()=>import("@/pages/Studio/index.vue"),
        children:[
            {
                path:'studioss',
                name:"Studioss",
                component:()=>import("@/pages/Studio/Center/studioss.vue")
            },
            {
                path:'navigation',
                name:"Navigation",
                component:()=>import("@/pages/Studio/Center/navigation.vue")
            },

        ]
    },
    //交流路由
    {
        path:'/communication',
        name:'Communication',
        component:()=>import("@/pages/Communication/index.vue")
    },
    //我的路由
    {
        path:'/mine',
        name:"Mine",
        redirect:'/mine/resources',     
        component:()=>import("@/pages/Mine/index.vue"),
        children:[
            {
                path:'resources',//资源
                name:'resources',
                component:()=>import("@/pages/Mine/Resources/index.vue"),
            },
            {
                path:'vip',//会员
                name:'vip',
                component:()=>import("@/pages/Mine/Vip/index.vue"),
            },
            {
                path:'money',//钱包
                name:'money',
                component:()=>import("@/pages/Mine/Money/index.vue"),
            },
            {
                path:'coupons',//优惠劵
                name:'Coupons',
                component:()=>import("@/pages/Mine/Coupons/index.vue"),
            },
            {
                path:'order',//订单
                name:'Order',
                component:()=>import("@/pages/Mine/Order/index.vue"),
            },
            {
                path:'sell',//卖的
                name:'Sell',
                component:()=>import("@/pages/Mine/Sell/index.vue"),
                children:[
                   {
                    path:'ordermanage',//订单管理
                    name:'Ordermanage',
                    component:()=>import("@/pages/Mine/Sell/Ordermanage/index.vue"),
                   },
                   {
                    path:'ordermanage',//商品管理
                    name:'Ordermanage',
                    component:()=>import("@/pages/Mine/Sell/Ordermanage/index.vue"),
                   },
                   {
                    path:'customers',//客户管理
                    name:'Customers',
                    component:()=>import("@/pages/Mine/Sell/Customers/index.vue"),
                   },
                   {
                    path:'pending',//待收款
                    name:'Pending',
                    component:()=>import("@/pages/Mine/Sell/Pending/index.vue"),
                   },
                   {
                    path:'prefential',//优惠管理
                    name:'Prefential',
                    component:()=>import("@/pages/Mine/Sell/Prefential/index.vue"),
                   },
                   {
                    path:'mineReviews',//评价管理
                    name:'mineReviews',
                    component:()=>import("@/pages/Mine/Sell/mineReviews/index.vue"),
                   },
                   {
                    path:'center',//保证金
                    name:'Center',
                    component:()=>import("@/pages/Mine/Sell/center/index.vue"),
                   },
                ]
            },
            {
                path:'data',//资料
                name:'Data',
                component:()=>import("@/pages/Mine/Data/index.vue"),
            },
        ]
    },
    {
        path:"/videolist",
        name:"VideoList",
        component:()=>import("@/pages/VideoList/index.vue")
    },
//任意路由表
    {
        path: "/:pathMatch(.*)",
        name: "Any",
        component:()=>import("@/pages/error/404.vue"),
        meta: {
          hidden: true,
        },
    }
];
